package com.caimiao.miao.bean;

import android.os.Parcel;
import android.os.Parcelable;

//出票信息
public class TicketOut extends Ticket implements Parcelable {
    private int id;
    private int sync;//是否同步到服务器
    private String nickname;//昵称
    private String headimgurl;//头像
    private String ticket_num;//出票数量
    private String out_trade_no;//订单号
    private int state;//出票结果

    public TicketOut() {
    }


    protected TicketOut(Parcel in) {
        super(in);
        id = in.readInt();
        sync = in.readInt();
        nickname = in.readString();
        headimgurl = in.readString();
        ticket_num = in.readString();
        out_trade_no = in.readString();
        state = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeInt(id);
        dest.writeInt(sync);
        dest.writeString(nickname);
        dest.writeString(headimgurl);
        dest.writeString(ticket_num);
        dest.writeString(out_trade_no);
        dest.writeInt(state);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<TicketOut> CREATOR = new Creator<TicketOut>() {
        @Override
        public TicketOut createFromParcel(Parcel in) {
            return new TicketOut(in);
        }

        @Override
        public TicketOut[] newArray(int size) {
            return new TicketOut[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSync() {
        return sync;
    }

    public void setSync(int sync) {
        this.sync = sync;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getTicket_num() {
        return ticket_num;
    }

    public void setTicket_num(String ticket_num) {
        this.ticket_num = ticket_num;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
